import request from '../utils/request';
//生产开单业务接口文档
const api = {
  //供应商-供应商列表分页带查询
  GetMatchPageSuppliers(data?: any) {
    return request({
      url: '/api/Supplier/GetMatchPageSuppliers',
      method: 'post',
      data,
    });
  },
  //供应商-新增供应商
  AddSupplier(data?: any) {
    return request({
      url: '/api/Supplier/AddSupplier',
      method: 'post',
      data,
    });
  },
  //供应商-修改供应商
  UpdateSupplier(data?: any) {
    return request({
      url: '/api/Supplier/UpdateSupplier',
      method: 'post',
      data,
    });
  },
  //供应商-删除供应商
  DeleteSupplier(data?: any) {
    return request({
      url: '/api/Supplier/DeleteSupplier',
      method: 'post',
      data,
    });
  },
  //供应商-禁用启用供应商
  ExcuteSupplier(data?: any) {
    return request({
      url: '/api/Supplier/ExcuteSupplier',
      method: 'post',
      data,
    });
  },
  //供应商-查看供应商详情
  GetSingleSupplier(data?: any) {
    return request({
      url: '/api/Supplier/GetSingleSupplier',
      method: 'post',
      data,
    });
  },
};
//业务开单接口
export default api;
